﻿<sdk:Page 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
  xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
  xmlns:ViewModels="clr-namespace:AR.ViewModels"
  xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices" xmlns:Entities="clr-namespace:AR.Entities" xmlns:Services="clr-namespace:AR.Web.Services"
  x:Class="AR.EntretienOrale"
  xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
  mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"  
  >
    <sdk:Page.Resources>
        <ViewModels:EntretienOraleViewModel x:Key="EntretienOraleViewModel" />
    </sdk:Page.Resources>
    <sdk:Page.Style>
        <StaticResource ResourceKey="PageStyle"/>
    </sdk:Page.Style>
    <Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource EntretienOraleViewModel}}">
      
        <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}">

            <StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}" Margin="0" Width="637">

                <TextBlock x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" 
                           Text="Entretien Orale"/>

                <toolkit:Separator Height="100" Margin="0"/>
                <!--<TextBox Height="23" HorizontalAlignment="Left" Margin="273,74,0,0" Name="fname" VerticalAlignment="Top" Width="120" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="276,134,0,0" Name="lname" VerticalAlignment="Top" Width="120" />-->
                <!--<Button Height="23" HorizontalAlignment="Left" Margin="234,192,0,0" Name="button1" VerticalAlignment="Top" Width="75" Content="ajouter" Click="addTaskButton_Click" />-->
                <sdk:DataGrid Height="100" Width="400" ItemsSource="{Binding Candidats}" 
                              AutoGenerateColumns="False" IsReadOnly="True">
                    <sdk:DataGrid.Columns>
                        <sdk:DataGridTextColumn Header="Nom" Binding="{Binding NOM}" />
                        <sdk:DataGridTextColumn Header="Prénom" Binding="{Binding PRENOM}" />
                        <sdk:DataGridTemplateColumn Header="lien" Width="SizeToHeader">
                            <!--<sdk:DataGridTemplateColumn.CellEditingTemplate>
                                <DataTemplate>
                                    
                                </DataTemplate>
                            </sdk:DataGridTemplateColumn.CellEditingTemplate>-->
                            <sdk:DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <HyperlinkButton Content="Entretien Orale" Tag="{Binding Id}" 
                                 NavigateUri="{Binding ID_CANDIDAT, StringFormat='/EntretienOrale2/{0}'}" 
                                 TargetName="ContentFrame" VerticalAlignment="Center"/>
                                </DataTemplate>
                            </sdk:DataGridTemplateColumn.CellTemplate>
                        </sdk:DataGridTemplateColumn>
                        <sdk:DataGridTemplateColumn Header="Date de naissance" Width="SizeToHeader">
                            <sdk:DataGridTemplateColumn.CellEditingTemplate>
                                <DataTemplate>
                                    <sdk:DatePicker SelectedDate="{Binding datenaissance, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true}"/>
                                </DataTemplate>
                            </sdk:DataGridTemplateColumn.CellEditingTemplate>
                            <sdk:DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding DATENAISSANCE, StringFormat=\{0:d\}}"/>
                                </DataTemplate>
                            </sdk:DataGridTemplateColumn.CellTemplate>
                        </sdk:DataGridTemplateColumn>
                    </sdk:DataGrid.Columns>
                </sdk:DataGrid>
            </StackPanel>

        </ScrollViewer>
    </Grid>

</sdk:Page>